Skip to content

[SPIR-V] Start cleaning up register classes.#258

Open
zuban32 wants to merge 1 commit intofeature/spirv-backend-llvm15_0_7_4from
cleanup_regclasses0
Open

[SPIR-V] Start cleaning up register classes.#258
zuban32 wants to merge 1 commit intofeature/spirv-backend-llvm15_0_7_4from
cleanup_regclasses0

Conversation

@zuban32
Copy link
Contributor

@zuban32 zuban32 commented Apr 13, 2023

In order to fix EXPENSIVE_CHECKS failures the hierarchy of register classes for SPIRV target needs to be adjusted.

This patch removes redundant FP regclasses since they effectively mimic type inference for existing generic FP instructions.

Also this change begins replacing explicit setRegClass calls with simply constraining instruction operands.

In order to fix EXPENSIVE_CHECKS failures the hierarchy
of register classes for SPIRV target needs to be adjusted.

This patch removes redundant FP regclasses since they
effectively mimic type inference for existing generic FP instructions.

Also this change begins replacing explicit setRegClass calls with
simply constraining instruction operands.
Copy link
Member

@michalpaszkowski michalpaszkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michalpaszkowski
Copy link
Member

@zuban32 Do you think this patch could be pushed to Phabricator?

@zuban32
Copy link
Contributor Author

zuban32 commented Apr 28, 2023

@zuban32 Do you think this patch could be pushed to Phabricator?

Absolutely, I just need to split it into 2-3 smaller patches before uploading. Plan to do that in the next 1-2 weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants